import request from "@/utils/request";

// 创建简历投递记录
export function createCurriculumVitaeSendRecord(data) {
  return request({
    url: "/member/curriculum-vitae-send-record/create",
    method: "post",
    data: data,
  });
}

// 更新简历投递记录
export function updateCurriculumVitaeSendRecord(data) {
  return request({
    url: "/member/curriculum-vitae-send-record/update",
    method: "put",
    data: data,
  });
}

// 删除简历投递记录
export function deleteCurriculumVitaeSendRecord(id) {
  return request({
    url: "/member/curriculum-vitae-send-record/delete?id=" + id,
    method: "delete",
  });
}

// 获得简历投递记录
export function getCurriculumVitaeSendRecord(id) {
  return request({
    url: "/member/curriculum-vitae-send-record/get?id=" + id,
    method: "get",
  });
}

// 获得简历投递记录分页
export function getCurriculumVitaeSendRecordPage(query) {
  return request({
    url: "/member/curriculum-vitae-send-record/page",
    method: "get",
    params: query,
  });
}

// 导出简历投递记录 Excel
export function exportCurriculumVitaeSendRecordExcel(query) {
  return request({
    url: "/member/curriculum-vitae-send-record/export-excel",
    method: "get",
    params: query,
    responseType: "blob",
  });
}
